std::ios_base::width
From Cppreference
| C++ Standard Library | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Input/output library | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| std::ios_base | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| streamsize width() const;
| (1) | |
| streamsize width( streamsize new_width );
| (2) | |
Manages the minimum number of characters to generate on certain output conversions.
1) Returns the current field width.
2) Sets the precision to the given one.
Contents |
Parameters
| new_width | - | new field width setting |
Return value
the field width before the call to the function
Example
| This section is incomplete |
See also
| manages decimal precision of floating point operations (public member function) | |